<?php
namespace haibao\cms\model\data\attendance;

class AttendanceUser extends \haibao\cms\model\data\Base{
    
	const STATUS_NORMAL = 0;
	const STATUS_QUIT = 1;
	const STATUS_REMOTE_USER = 2; //远程办公人员
	const STATUS_TRAINEE = 3; //实习人员
    /**
     * 员工编号
     */
    public $JobNum;
    /**
     * 年假
     */
    public $AnnualLeave;
    /**
     * 倒休
     */
    public $CompensationLeave = 0;
    /**
     * 全薪病假
     */
    public $FullPaidSickLeave;
    /**
     * 婚假
     */
    public $MarriageLeave = 0;
    /**
     * 创建时间
     */
    public $CreateTime;
    /**
     * 员工平时加班时数
     */
    public $UsualOverTimeHours = 0;
    /**
     * 周末员工加班小时数
     */
    public $WeekendsOverTimeHours = 0;
    /**
     * 假日员工加班小时数
     */
    public $HolidayOverTimeHours = 0;
    /**
     * 员工姓名
     */
    public $RealName;
    /**
     * 员工本年应休年假
     */
    public $AnnualHours = 0;
    /**
     * 员工本年应休全薪病假
     */
    public $FullPaidSickHours = 0;
    /**
     * 员工已休全薪病假
     */
    public $FullPaidSickHoursPass;
    /**
     * 员工已休年假
     */
    public $AnnualHoursPass;
    /**
     * 员工1年社保时间
     */
    public $OneYearSocialDate = null;
    /**
     * 员工10年社保时间
     */
    public $TenYearSocialDate = null;
    
    public $Status = 0;
    public $UserInfo;
    public $IsSalary;
    public function __construct(){
        parent::__construct();
        $this->intField('JobNum', 'JobNum',true);
        $this->intField('AnnualLeave', 'AnnualLeave',true);
        $this->intField('CompensationLeave', 'CompensationLeave');
        $this->intField('FullPaidSickLeave', 'FullPaidSickLeave',true);
        $this->intField('MarriageLeave', 'MarriageLeave');
        $this->dateField('CreateTime', 'CreateTime');
        $this->intField('UsualOverTimeHours', 'UsualOverTimeHours', false, 0);
        $this->intField('WeekendsOverTimeHours', 'WeekendsOverTimeHours', false, 0);
        $this->intField('HolidayOverTimeHours', 'HolidayOverTimeHours', false, 0);
        $this->intField('AnnualHours', 'AnnualHours', false, 0);
        $this->intField('FullPaidSickHours', 'FullPaidSickHours', false, 0);
        $this->intField('OneYearSocialDate', 'OneYearSocialDate', false);
        $this->intField('TenYearSocialDate', 'TenYearSocialDate', false);
        $this->intField('Status', 'Status', false,0);
        
        $this->setTableName('AttendanceUser');
    }
}